
let userInfo = sessionStorage.getItem('userInfo');

if(!userInfo || userInfo == ''){
	//跳转登录页面
	window.location.href = "http://admin.miaoyimeishu.com/index.php?s=/api/user/getqr/wxapp_id/10004"
}else{
	userInfo = JSON.parse(userInfo); 
	if(userInfo.is_activation == 0 && !window.location.pathname.includes('activate.html')){
		window.location.href = "activate.html"
	}
}